← Back to issue list

Python plugin: ship pyc files only

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1856242
Type
issue
State
open
Author
~om26er
Labels
Created
2019-12-12 20:45:18.937368+00:00
Updated
2019-12-12 22:53:54.339053+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

Currently snapcraft bytecompiles .py files as part of the Python plugin, this is done to fasten startup time of snaps. Doing that increases the size of the snap, something that could be avoided. The snap should only ship pyc file and remove .py files. How to achieve that ? 1. pip install --no-compile 2. python3 -m compileall -b 3. find . -name '*.py' -type f -exec rm {} \;

Evaluation history

No evaluation history available.